package cn.lopr.hfbdqn.dao;

import cn.lopr.hfbdqn.pojo.User;
import cn.lopr.mvc.frame.annotaion.Repository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Repository
public interface UserMapper {
    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> selectAll();

    User getByUsernameAndPassword(@Param("username") String username,
                                  @Param("password") String password);
}